package org.example.springboot.common.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.springboot.common.domain.request.PageRequest;
import org.example.springboot.common.domain.response.PageResult;

public interface IBaseService<T> extends IService<T> {

    <E extends  PageRequest> Page<T>  page(E pageRequest, Wrapper<T> queryWrapper);

    <E extends  PageRequest> PageResult<T> pageResult(E pageRequest, Wrapper<T> queryWrapper);
}
